#include"Comm.hpp"
#include"Log.hpp"
int main()
{
    key_t key=CreatKey();
    Log() << "key: " << key << "\n";
    int shmid=shmget(key,MEM_SIZE,IPC_CREAT);
    if(shmid<0)
    {
        Log()<<"shmget: "<<strerror(errno)<<endl;
        return 2;
    }
    char* str=(char*)shmat(shmid,nullptr,0);
    sleep(5);
    Log() << "key:________" << key << "\n";
    shmdt(str);
    return 0;
}
